home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 38 / Amiga Format CD38 (1999-03-15)(Future Publishing)(GB)(Track 1 of 3)[!][issue 1999-04].iso / -screenplay- / hd_installers / turrican2hd / install-turrican2 next >
Text File  |  1999-02-08  |  2KB  |  96 lines

  1. ;HAND INSTALLATION:
  2. ; 1. Copy turrican2hd and readturr2disk to whatever dir you like, and CD there.
  3. ; 1. Insert Turrican 2 disk in drive DF0:
  4. ; 2. Type 'readturr2disk Turrican2.d1 0'.
  5. ; 3. Type 'jst turrican2hd' to play the game.
  6.  
  7. (set GameDir "Turrican2")
  8.  
  9. ;try to figure out a place where the user usually installs his games
  10. (if (exists "Games:" (noreq) )
  11.     (set @default-dest "Games:")
  12.     (if (exists "SYS:Games" (noreq) )
  13.         (set @default-dest "SYS:Games")
  14.         (if (exists "Work:Games" (noreq) )
  15.             (set @default-dest "Work:Games")
  16.             (if (exists "JEUX:" (noreq) )
  17.                (set @default-dest "JEUX:")
  18.                (set @default-dest "SYS:")
  19.             )
  20.         )
  21.     )
  22. )
  23. (set #dest
  24.      (tackon (askdir (prompt "Where would you like " @app-name " installed?\n"
  25.                              "A drawer called " GameDir " will be created.")
  26.                      (help @askdir-help)
  27.                      (default @default-dest)
  28.                      (newpath)
  29.              )
  30.      GameDir
  31.      )
  32. )
  33.  
  34. (set @default-dest #dest)
  35.  
  36. (message "\n\n\nThis loader needs the JST program (NOT INCLUDED)\n to be copied in your path\n\n(if you don't have it already)\n\nJST is available from aminet (game/patch)")
  37.  
  38. (set #CI_unit
  39.     (askchoice
  40.         (prompt "From which disk unit do you want\nto install the game")
  41.         (help    @askoptions-help)
  42.         (choices
  43.            "DF0:"
  44.            "DF1:"
  45.            "DF2:"
  46.            "DF3:"
  47.         )
  48.     )
  49. )
  50.  
  51. (makedir @default-dest
  52.     (help @makedir-help)
  53.     (infos)
  54. )
  55.  
  56. ;----------------------------
  57.  
  58. (copyfiles
  59.     (help @copyfiles-help)
  60.     (source "Turrican2HD")
  61.     (dest @default-dest)
  62.     (infos)
  63. )
  64.  
  65. (copyfiles
  66.     (help @copyfiles-help)
  67.     (source "turr2hd.readme")
  68.     (dest @default-dest)
  69.     (infos)
  70.     (optional nofail)
  71. )
  72.  
  73. (copyfiles
  74.     (help @copyfiles-help)
  75.     (source "Turrican2.hisc")
  76.     (dest @default-dest)
  77.     (optional nofail)
  78. )
  79.  
  80. (copyfiles
  81.     (help @copyfiles-help)
  82.     (source "")
  83.     (dest @default-dest)
  84.     (pattern "maps")
  85.     (infos)
  86.     (optional nofail)
  87. )
  88.  
  89.  
  90. (message ("\nInsert %s disk into drive DF%ld:" @app-name #CI_unit))
  91.     (if
  92.         (= 0 (run ("readturr2disk %s %ld" (tackon @default-dest "Turrican2.d1") #CI_unit)))
  93.         ("")
  94.         (abort "the disk could not be correctly read!")
  95.     )
  96.